package mediasystem;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@ComponentScan
@Component
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class cdplayer {

	@Autowired
	cdinterface cd;
	
	public void play(){
		System.out.println("playing cd [" + cd.info() + "]");
	}

}
